from sympy import Matrix, MatrixSymbol, Eq, MatMul
= MatrixSymbol("v",2,1) # Column vector having 2 rows
sympy_v = MatrixSymbol("A",2,2) # 2x2 Transformation matrix
sympy_A = MatrixSymbol("y", 2, 1)
sympy_y print("y is the transformed vector.")
*sympy_v,evaluate=False) Eq(sympy_y,sympy_A
y is the transformed vector.
\(\displaystyle y = A v\)